home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / LIST&DIA / MAIN.C < prev   
C/C++ Source or Header  |  1990-05-19  |  502b  |  38 lines

  1.  
  2.  
  3. #include "list&dialog.h"
  4.  
  5. /***
  6. **
  7. **    The main "do nothing"
  8. **    Bernie Wieser '90
  9. **
  10. **    Purpose
  11. **        Initialize all needed stuff for list manager and dialog manager
  12. **    
  13. ***/
  14.  
  15. main()
  16. {
  17.     
  18.     MaxApplZone();
  19.  
  20.     /* init macintosh */
  21.     FlushEvents(everyEvent,0);
  22.     InitGraf(&thePort);
  23.     InitFonts();
  24.     InitWindows();
  25.     InitMenus();
  26.     TEInit();
  27.     InitDialogs(NIL);
  28.  
  29.     /* other set ups */
  30.     InitCursor();
  31.     
  32.     /* my dialog test */
  33.     SetPort(thePort);
  34.     do_dialog(thePort);
  35.         
  36.     /* clean up and (common) exit */
  37.     ExitToShell();
  38. }